package com.wenguodong.demofirstt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenguodong.demofirstt.mapper.UserMapper;
import com.wenguodong.demofirstt.pojo.User;
import com.wenguodong.demofirstt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
 *@Time：2023/4/15
 *@Author：Jelly
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;
    @Override
    public Integer getUserByNameAndPwd(String userName, String userPassword) {
        return userMapper.getUserByNameAndPassword(userName,userPassword);
    }

    @Override
    public Integer addUser(User user) {
        return userMapper.addUser(user);
    }


}
